<%@ page contentType="text/html;charset=UTF-8" %>
<html lang="zh">
<head>
    <title>案例管理</title>
    <meta name="layout" content="mainForAdmin"/>
</head>

<body>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">
            案例管理
        </h1>
        <ol class="breadcrumb">
            <li>
                <i class="fa fa-plus"></i> <g:link controller="case" action="create">新建</g:link>
            </li>
        </ol>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <h2>所有的案例</h2>
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>创建时间</th>
                    <th>标签</th>
                </tr>
                </thead>
                <tbody>
                <g:each in="${instances}">
                    <tr>
                        <td>${it.id}</td><td>${it.title}</td><td><g:formatDate date="${it.dateCreated}" format="yyyy年MM月dd日 HH:mm:ss"/></td>
                    </tr>
                </g:each>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>